home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Re ODF R1 RefCounting Exte.3 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.2 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODF R1 RefCounting Exte
  2. Sent:        5/30/96 6:03 PM
  3. Received:    5/31/96 8:09 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >I'll try to save Greg the trouble.  After re-reading the description of
  9. >ODRefCntObject, I think you're right.  The extension creation function should
  10. >be setting the refCount to 1, not FW_CExtensionManager::AcquireExtension(). 
  11. >A note to that effect might be useful in the Engineering Note on Extensions.
  12. >
  13. >Kirk Swenson
  14. >Senior Software Engineer
  15. >Key Curriculum Press
  16. >kswenson@keypress.com
  17.  
  18. ODRefcounted should be setting the refcount to 1. I did not look at the 
  19. OpenDoc sources but it would make sens to me to have the initialization 
  20. method of ODFRefCounted object setting the refcount to 1. Are you sure 
  21. that you are not missing a call to your parent class during 
  22. initialization of your extention?
  23.  
  24. .......................................................................
  25.  Henri Lamiraux                                      lamiraux@apple.com
  26.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  27. .......................................................................
  28.  
  29.